﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Delegate.Demo
{
    public class Person
    {
        string name;

        public Person(string name)
        {
            this.name = name;
        }

        public string Receive(Message msg)
        {
            return string.Format("Receive:{0}", msg(this.name));
        }
    }
}
